label: Don't use gtk_widget_set_simple_clip
authorTimm Bäder <mail@baedert.org>
Tue, 25 Apr 2017 09:57:12 +0000 (11:57 +0200)
committerTimm Bäder <mail@baedert.org>
Tue, 25 Apr 2017 18:30:37 +0000 (20:30 +0200)
The clip returned by gtk_css_gadget_allocate already includes the
box-shadow size and we manually care about the text-shadow size.

gtk/gtklabel.c

index dd1b202fd4abf844bd024ceb2a942aa067478c8c..150433fea0f6983f853f58b268133521f4190233 100644 (file)
@@ -4005,7 +4005,7 @@ gtk_label_size_allocate (GtkWidget     *widget,
 
   gtk_label_get_ink_rect (label, &clip_rect);
   gdk_rectangle_union (&clip_rect, &clip, &clip_rect);
-  _gtk_widget_set_simple_clip (widget, &clip_rect);
+  gtk_widget_set_clip (widget, &clip_rect);
 }
 
 static void